<?php
namespace yan\editor_frontend\editorxml;
use yii\helpers\Html;

class WebTextWidget extends WebWidget{
	public function run(){
		$options = $this->options;
		$shtml = Html::beginTag('div', $options);
		$shtml .= (isset($this->value['value']['content']) ? \common\utils\Helper::showContent($this->value['value']['content']) : '');
		$shtml .= Html::endTag('div');
		return $shtml;
	}
}